package com.hrp.analyzer.spider.pipline;

import com.hrp.analyzer.model.Novel;

/**
 * 管道处理基类
 *
 * @author hrp
 * @date 2021/02/08 11:02
 */
public abstract class BasePipeline implements Pipeline {
    private Novel novel = null;

    @Override
    public void injectNovel(Novel novel) {
        this.novel = novel;
    }

    public Novel getNovel() {
        return novel;
    }

    public BasePipeline setNovel(Novel novel) {
        this.novel = novel;
        return this;
    }
}
